package com.his.entity;

import com.his.common.Const;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 病人实体类
 *
 * @author makejava
 * @since 2020-10-23 18:14:20
 */
@Data
public class Patient implements Serializable {
    private static final long serialVersionUID = -20379237705048099L;

    @NotNull(message = "病人主键不能为空",groups = {Const.Update.class})
    private Integer id;

    private Integer recordId;

    @NotBlank(message = "真实姓名不能为空")
    private String realName;

    private Integer age;

    @NotBlank(message = "密码不能为空")
    private String password;

    @NotBlank(message = "性别不能为空")
    private String gender;

    @NotBlank(message = "手机号码不能为空")
    private String tellphone;
    /**
     * 身份证号
     */
    @NotBlank(message = "身份证号码不能为空")
    private String identityNo;

    private String status;
    /**
     * 违约次数
     */
    private Integer violations;

    private String medicalId;
    /**
     * 紧急联系人
     */
    @NotBlank(message = "紧急联系人不能为空")
    private String relaName;
    /**
     * 联系电话
     */
    @NotBlank(message = "紧急联系人号码不能为空")
    private String relaPhone;
    /**
     * 预付款
     */
    private Double preMoney;


    /**
     * 病人病历对象
     */
    private Record record;
    /**
     * 病人医嘱信息
     */
    private DoctorAdvice doctorAdvice;

    /**
     * 病人处方
     */
    private Recipel recipel;

    /**
     * 病人申请
     */
    private Application application;

}
